import torch

a = torch.zeros(2, 3)
b = torch.cos(a)

print(a) # tensor([[0., 0., 0.], [0., 0., 0.]])
print(b) # tensor([[1., 1., 1.], [1., 1., 1.]])